package com.javasea.netty.har.common.entity.print;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author longxiaonan
 * @since 2021-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QrPrintState implements Serializable {

    private static final long serialVersionUID=1L;

    private String id;

    private String qrnumber;

    /** 批次id */
    private String batchId;

    /** 项目 */
    private String project;

    /** 楼栋 */
    private String build;

    /** 单号 */
    private String orderCode;

    /**
     * 是否成功打印（0失败 1成功 2未打印）
     */
    private Integer printState;

    private LocalDateTime printTime;

    private String printMsg;

    /**
     * 打印情况发送给服务端的状态（0失败，超时等 1成功 2未发送 3已发送）
     */
    private Integer sendState;

    private LocalDateTime sendTime;

    private LocalDateTime createTime;

    /**
     * 打印次数
     */
    private Integer printTimes;

    /** 打印参数
     */
    private String printParam;

    public static final String QRNUMBER = "qrnumber";

    public static final String PRINT_STATE = "print_state";

    public static final String PRINT_MSG = "print_msg";

    public static final String CREATE_TIME = "create_time";

    public static final String PRINT_TIMES = "print_times";

}
